<style type="text/css">
    .knowledge_shangchuanjindu_yulan{width: 100%;    height: 5px;    margin-top: 5px;    border-radius: 2px;    overflow: hidden;}
    .lookrecord{ cursor:pointer;}
    .lookrecord:hover{ color:#39f;}
</style>
<div class="traintask" ng-controller = "SpecialColumnController">
    <!--筛选区-->
    <div class="traintask_top">
        <div class="traintaskcztimefw" style="margin-left:-16px;" ng-if="false">
            <a>创建时间</a><!--<span class="caret"></span>-->
            <input id="startDate" style="width:120px;" placeholder="开始日期" onclick="wdatepicker({highLineWeekDay:true})" ng-focus="GetDate()" onfocus="var endTime=$dp.$('startDate');wdatepicker({dateFmt:'yyyy-MM-dd HH:mm:ss',onpicked:function(){endDate.focus();},maxDate:'#F{$dp.$D(\'endDate\')}'})">
            <span>-</span>
            <input style="width:120px;" id="endDate" placeholder="截止日期" value="" onclick="wdatepicker()"
                ng-focus="GetDate()" onfocus="wdatepicker({dateFmt:'yyyy-MM-dd HH:mm:ss',minDate:'#F{$dp.$D(\'startDate\')}'})" />
        </div>
        <input type="text" placeholder="请输入专栏名称" class="traintask_top_sousuo" ng-model="params.searchTxt" ng-keyup = "findListEnter($event)"  style="border: 1px solid #ddd;" />
        <div ng-click="getList()" style="float: none;">
            <svg class="icon" aria-hidden="true"><use xlink:href="#icon-sousuo"></use></svg>
            确认筛选
        </div>
        <div class="traintask_top_right">
            <!--绑定指令(预留) -->
            <div class="traintask_top_add " btncon="btnAdd" btn-obj="btnlist" fun="1" ng-click="closeOrOpenForm()">
                <svg class="icon" aria-hidden="true"><use xlink:href="#icon-tianjia"></use></svg>
                新增</div>            
                <div class="traintask_top_add " btncon="btnUpd" btn-obj="btnlist"  fun="1"  ng-click="openAdd()">
                <svg class="icon" aria-hidden="true"><use xlink:href="#icon-bianji"></use></svg>
                编辑</div>        
            <div class="traintask_top_select" btncon="btnDel" fun="0" btn-obj="btnlist">
                <svg class="icon" aria-hidden="true"><use xlink:href="#icon-shanchu"></use></svg>
                删除</div>
        </div>
    </div>
    <!--内容区-->
    <div class="traintask_main">
        <div class="traintask_main_liebiao">
            <table class="tab">
                <thead>
                    <th> <div class="traintask_main_liebiao_checkbox">
                            <div class="liebiaocheck-box" ng-click="selectAll()" ng-class="{selected:checkAll !=0 && checkAll == List.length}">
                                <!--添加selected为选中样式-->
                                <span class="iconfont"></span>
                            </div>
                            <div class="traintask_main_liebiaoli_xiugai" ng-if="false">
                                <svg class="icon" aria-hidden="true"><use xlink:href="#icon-xiugai"></use></svg>
                            </div>
                        </div></th>
                    <th style="text-align:left;">专栏标题</th>     
                    <th>状态</th>
                    <th>创建人</th>
                    <th>栏目分类</th>
                    <th>关注量</th>
                    <th>回答量</th>
                    <th>申请时间</th>
                    <th></th>
                </thead>
                <tbody>
                    <tr ng-if="List.length <=0 && !Loading">
                        <td colspan="8">
                            <center style="margin:100px auto;">
                                <img src="/images/null/null.png" />
                                <div style="font-size:30px;color:#a3a3a3;"  ng-bind="'Null' | T"></div>
                            </center>   
                        </td>
                    </tr>
                    <tr ng-if="Loading">
                        <td  colspan="8"><!--Loading-->
                            <loading isloading="Loading" ng-if="Loading"></loading>  
                        </td>
                    </tr>
                    <tr ng-repeat="item in List">
                        <td class="tdshou"><div class="traintask_main_liebiao_checkbox">
                            <div class="liebiaocheck-box" ng-click="singleCheck(item)" ng-class="{selected:item.isSel}">
                                <!--添加selected为选中样式-->
                                <span class="iconfont"></span>
                            </div>
                            <div class="traintask_main_liebiaoli_xiugai" ng-click="addinfo(item)">
                                <svg class="icon" aria-hidden="true"><use xlink:href="#icon-bianji"></use></svg>
                            </div>
                        </div></td>
                        <td class="tdshou" ng-bind="item.columnName"></span>
                        </td>
                        <td align="center"> {{item.columnState==1?'加入可见':(item.columnState==2?'所有人可见':(item.columnState==3?'邀请可见':'未知'))}}</td>
                        <td align="center" ng-bind="item.CreateUserName"></td>
                        <td align="center" ng-bind="item.knowName"></td>
                        <td align="center" ng-bind="item.followCount"></td>
                        <td align="center" ng-bind="item.answerCount"></td>
                        <td  align="center" class="tdshou"><div class="traintask_main_liebiao_pxkstime_sj" ng-bind="item.CreateDate | to_time"  >
                                00:00</div>
                            <div class="traintask_main_liebiao_pxkstime_data" ng-bind="item.CreateDate | to_date">
                                0000-00-00</div></td>
                        <td class="tdshou" style="position: relative; text-align: center;">                      
                            <div ng-mousemove="item.isToolShow=true" ng-mouseleave ="item.isToolShow = false" >
                                <svg class="icon" aria-hidden="true"><use xlink:href="#icon-ttpodicon1"></use></svg>
                                <ul class="dropdown-menu" ng-if="item.isToolShow" style="position: absolute;top: 10px;z-index: 999;">
                                    <li ng-click="openAdd(item)">
                                        <svg class="icon" aria-hidden="true"><use xlink:href="#icon-bianji"></use></svg>
                                        编辑</li>
                                    <li ng-click="delinfo(item)">
                                        <svg class="icon" aria-hidden="true"><use xlink:href="#icon-shanchu"></use></svg>
                                        删除</li>
                                    <li ng-click="closeJoinList(item)" ng-if="item.columnState!=2">
                                        <svg class="icon" aria-hidden="true"><use xlink:href="#icon-shanchu"></use></svg>
                                        查看申请</li>
                                </ul>
                            </div>
                        </td>
                    </tr>
                </tbody>
            </table>

        </div>
        <!--分页-->
        <tm-pagination conf="paginationConf"></tm-pagination>
        <!------新增编辑弹框------>
      <add-special-column ng-if="showForm" on-save="saveObj()" on-close="closeOrOpenForm()"  item="item"></add-special-column> 
    </div>    
    <!-----------------------------------------------------------------查看申请人------------------------------------------------------------------------>
    <div class="loading_bg" style="z-index: 999" ng-click="closeJoinList()" ng-if="showJoinList"></div>
    <div class="new_target_windows"  ng-if="showJoinList">
        <div class="ntw_content"> 
            <div class="title">
                <h1>申请管理</h1><div class="close"  ng-click="closeJoinList()"><span>+</span></div>
                <div class="clear"></div>
            </div>
            <ul class="ulzu">
               <li>
                 <span><i class="iconfont">&#xe764;</i>已审核人员：</span>
               </li>  
               <li ng-if="passJoinObj.datas.length>0">
                <div>
                 <span class="touxiang" ng-repeat="user in passJoinObj.datas">
                     <img ng-src="{{user.userImg}}" src="/images/avatar.png"  onerror="javascript:this.src='/images/avatar.png'">
                     <span ng-click="delJoin(user)"><i class="iconfont">&#xe606;</i></span>
                 </span> 
                 </div>
               </li> 
               <li ng-if="passJoinObj.datas.length<=0">
               <span >暂无数据</span>
               </li> 
               <li ng-if="passJoinObj.pageCount>passJoinObj.pageIndex">
               <a href="javascript:void(0)" ng-click="loadMorePassJoin()">加载更多</a>
               </li>
           </ul> 
           <ul class="ulzu">
               <li>
                 <span><i class="iconfont">&#xe764;</i>申请待审核人员：</span>
               </li>  
               <li ng-if="joinObj.datas.length>0">
                <div>
                 <span class="touxiang" ng-repeat="user in joinObj.datas">
                     <img ng-src="{{user.userImg}}" src="/images/avatar.png"  onerror="javascript:this.src='/images/avatar.png'">
                     <span ng-click="ExaminationJoin(user)"><i class="iconfont">&#xe721;</i></span>
                 </span>
                 </div>
               </li> 
               <li ng-if="joinObj.datas.length<=0">
               <span>暂无数据</span>
               </li> 
               <li ng-if="joinObj.pageCount>joinObj.pageIndex">
               <a href="javascript:void(0)" ng-click="loadMoreJoin()">加载更多</a>
               </li>
           </ul> 

    </div>
    <div class="ntw_footer">
        <div class="new_curriculum_bottom_right">
            <div class="btn queding" style="width: 100px;" ng-click="saveObj()">
                <span class="ng-scope"><i class="iconfont">&#xe6ee;</i> 确定保存</span>
            </div>
        </div>
    </div>
    </div>     
</div>
